<?php
namespace app\index\controller;
use app\common\controller\Base;
use think\Controller;
use think\Session;
use Service\JsonService;
class Index extends Base
{
    public function index()
    {
        return $this->fetch('index');
    }

    public function hello($name = 'ThinkPHP5')
    {
        return 'hello,' . $name;
    }
    public function test()
    {
        // if($this->request->isAjax()){
        //     $session = new Session();
        //     return json('111',200);
        // }else{
        //     return "test";
        // }
        
    }
}
